import 'package:flutter/material.dart';

class SelectDateTime {
  DateTime selectedDate = DateTime.now();

  ////
  static void dateRange(BuildContext context, Function callback) async {
    DateTime dt = DateTime.now();
    final DateTime date = await showDateRangePicker(
      context: context,
      initialDateRange: DateTimeRange(start: dt, end: dt),
      firstDate: DateTime(1900),
      lastDate: DateTime(2100),
    ).then((value) => callback(value));
  }
}
